From da1c33909274b87a5856b67099e6004a06a8d6da Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 31 Dec 2001 00:05:30 +0000 Subject: [PATCH] Remove references to nonexisting functions. * gtk/tmpl/gtkbbox.sgml: Remove references to nonexisting functions. * gtk/tmpl/gtkcolorseldlg.sgml, gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkhseparator.sgml, gtk/tmpl/gtktree.sgml, gtk/tmpl/gtkradiobutton.sgml, gtk/tmpl/gtkradiomenuitem.sgml: Replace references to deprecated functions. * gtk/tmpl/gtkhbbox.sgml,gtk/tmpl/gtkvbbox.sgml: Minor fixes. --- docs/reference/ChangeLog | 12 ++ docs/reference/gtk/tmpl/gtkbbox.sgml | 127 ++++++++---------- docs/reference/gtk/tmpl/gtkcolorseldlg.sgml | 2 +- docs/reference/gtk/tmpl/gtkdrawingarea.sgml | 2 - docs/reference/gtk/tmpl/gtkhbbox.sgml | 4 +- docs/reference/gtk/tmpl/gtkhseparator.sgml | 2 +- docs/reference/gtk/tmpl/gtkmain.sgml | 3 + docs/reference/gtk/tmpl/gtkradiobutton.sgml | 2 +- docs/reference/gtk/tmpl/gtkradiomenuitem.sgml | 2 +- docs/reference/gtk/tmpl/gtktree.sgml | 4 +- docs/reference/gtk/tmpl/gtkvbbox.sgml | 4 +- 11 files changed, 83 insertions(+), 81 deletions(-) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index c4f53d6b8c..00dd737b7d 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,15 @@ +2001-12-30 Matthias Clasen + + * gtk/tmpl/gtkbbox.sgml: Remove references to nonexisting functions. + + * gtk/tmpl/gtkcolorseldlg.sgml, gtk/tmpl/gtkdrawingarea.sgml, + gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkhseparator.sgml, + gtk/tmpl/gtktree.sgml, gtk/tmpl/gtkradiobutton.sgml, + gtk/tmpl/gtkradiomenuitem.sgml: + Replace references to deprecated functions. + + * gtk/tmpl/gtkhbbox.sgml,gtk/tmpl/gtkvbbox.sgml: Minor fixes. + 2001-12-30 Matthias Clasen * gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkscale.sgml, diff --git a/docs/reference/gtk/tmpl/gtkbbox.sgml b/docs/reference/gtk/tmpl/gtkbbox.sgml index 38d13b2f76..b57f1a58ee 100644 --- a/docs/reference/gtk/tmpl/gtkbbox.sgml +++ b/docs/reference/gtk/tmpl/gtkbbox.sgml @@ -5,74 +5,63 @@ GtkButtonBox Base class for #GtkHButtonBox and #GtkVButtonBox - -The primary purpose of this class is to keep track of the various properties -of #GtkHButtonBox and #GtkVButtonBox widgets. - - -gtk_button_box_get_child_size_default() retrieves the default minimum width and height -for widgets in any button box. gtk_button_box_set_child_size_default() -changes the default minimum child widget size. - - -gtk_button_box_get_child_size() retrieves the minimum width and height -for widgets in a given button box. gtk_button_box_set_child_size() -allows those properties to be changed. - - -gtk_button_box_get_child_ipadding_default() gets the default number of pixels of -horizontal and vertical padding that are applied to each button in every button box. -gtk_button_box_set_child_ipadding_default() allows these defaults to be -changed. - - -The internal padding of buttons can be retrieved and changed per button box using -gtk_button_box_get_child_ipadding() and gtk_button_box_set_child_ipadding() -respectively. - - -gtk_button_box_get_spacing() and gtk_button_box_set_spacing() retrieve and -change default number of pixels between buttons, respectively. - - -gtk_button_box_get_layout() and gtk_button_box_set_layout() retrieve and alter the method -used to spread the buttons in a button box across the container, respectively. - - - - + +The primary purpose of this class is to keep track of the various properties +of #GtkHButtonBox and #GtkVButtonBox widgets. + + +gtk_button_box_get_child_size() retrieves the minimum width and height +for widgets in a given button box. gtk_button_box_set_child_size() +allows those properties to be changed. + + +The internal padding of buttons can be retrieved and changed per button box using +gtk_button_box_get_child_ipadding() and gtk_button_box_set_child_ipadding() +respectively. + + +gtk_button_box_get_spacing() and gtk_button_box_set_spacing() retrieve and +change default number of pixels between buttons, respectively. + + +gtk_button_box_get_layout() and gtk_button_box_set_layout() retrieve and alter the method +used to spread the buttons in a button box across the container, respectively. + + + + - - - -#GtkVButtonBox -Vertical sub-class of #GtkButtonBox. - - -#GtkHButtonBox -Horizontal sub-class of #GtkButtonBox. - - + + + +#GtkVButtonBox +Vertical sub-class of #GtkButtonBox. + + +#GtkHButtonBox +Horizontal sub-class of #GtkButtonBox. + + - -This is a read-only struct; no members should be modified directly. + +This is a read-only struct; no members should be modified directly. - -Used internally only. + +Used internally only. - -Retrieves how much space a button box is placing between each child button. + +Retrieves how much space a button box is placing between each child button. @b: @@ -82,8 +71,8 @@ Retrieves how much space a button box is placing between each child button. - -Retrieves the method being used to arrange the buttons in a button box. + +Retrieves the method being used to arrange the buttons in a button box. @widget: a #GtkButtonBox. @@ -91,9 +80,9 @@ Retrieves the method being used to arrange the buttons in a button box. - -Retrieves the current width and height of all child widgets in a button box. -@min_width and @min_height are filled with those values, respectively. + +Retrieves the current width and height of all child widgets in a button box. +@min_width and @min_height are filled with those values, respectively. @widget: a #GtkButtonBox. @@ -102,8 +91,8 @@ Retrieves the current width and height of all child widgets in a button box. - -Gets the default number of pixels that pad the buttons in a given button box. + +Gets the default number of pixels that pad the buttons in a given button box. @widget: a #GtkButtonBox. @@ -112,8 +101,8 @@ Gets the default number of pixels that pad the buttons in a given button box. - -Sets the amount of spacing between buttons in a given button box. + +Sets the amount of spacing between buttons in a given button box. @b: @@ -124,8 +113,8 @@ Sets the amount of spacing between buttons in a given button box. - -Changes the way buttons are arranged in their container. + +Changes the way buttons are arranged in their container. @widget: a #GtkButtonBox. @@ -133,8 +122,8 @@ Changes the way buttons are arranged in their container. - -Sets a new default size for the children of a given button box. + +Sets a new default size for the children of a given button box. @widget: a #GtkButtonBox. @@ -143,9 +132,9 @@ Sets a new default size for the children of a given button box. - -Changes the amount of internal padding used by all buttons in a given button -box. + +Changes the amount of internal padding used by all buttons in a given button +box. @widget: a #GtkButtonBox. diff --git a/docs/reference/gtk/tmpl/gtkcolorseldlg.sgml b/docs/reference/gtk/tmpl/gtkcolorseldlg.sgml index f9f166475d..d089474325 100644 --- a/docs/reference/gtk/tmpl/gtkcolorseldlg.sgml +++ b/docs/reference/gtk/tmpl/gtkcolorseldlg.sgml @@ -29,7 +29,7 @@ an application.) #GtkWidget *colorsel; The #GtkColorSelection widget contained within the -dialog. Use this widget and its gtk_color_selection_get_color() +dialog. Use this widget and its gtk_color_selection_get_current_color() function to gain access to the selected color. Connect a handler for this widget's color_changed signal to be notified when the color changes. diff --git a/docs/reference/gtk/tmpl/gtkdrawingarea.sgml b/docs/reference/gtk/tmpl/gtkdrawingarea.sgml index bafb109ca7..bc10611d0c 100644 --- a/docs/reference/gtk/tmpl/gtkdrawingarea.sgml +++ b/docs/reference/gtk/tmpl/gtkdrawingarea.sgml @@ -71,8 +71,6 @@ expose_event (GdkWidget *widget, GdkEventExpose *event, gpointer data) } [...] GtkWidget *drawing_area = gtk_drawing_area_new (); - gtk_drawing_area_size (GTK_DRAWING_AREA (drawing_area), - 100, 100); gtk_signal_connect (GTK_OBJECT (drawing_area), diff --git a/docs/reference/gtk/tmpl/gtkhbbox.sgml b/docs/reference/gtk/tmpl/gtkhbbox.sgml index 889f2cf039..80da5b50af 100644 --- a/docs/reference/gtk/tmpl/gtkhbbox.sgml +++ b/docs/reference/gtk/tmpl/gtkhbbox.sgml @@ -8,14 +8,14 @@ a container for arranging button horizontally. A button box should be used to provide a consistent layout of buttons throughout your application. There is one default layout and a default -spacing value that are persistant across all #HButtonBox widgets. +spacing value that are persistant across all #GtkHButtonBox widgets. The layout/spacing can then be altered by the programmer, or if desired, by the user to alter the 'feel' of a program to a small degree. -A #HButtonBox is created with gtk_hbutton_box_new(). Buttons are packed into +A #GtkHButtonBox is created with gtk_hbutton_box_new(). Buttons are packed into a button box the same way as any other box, using gtk_box_pack_start() or gtk_box_pack_end(). diff --git a/docs/reference/gtk/tmpl/gtkhseparator.sgml b/docs/reference/gtk/tmpl/gtkhseparator.sgml index 3ad3e71655..c2ecaaeb23 100644 --- a/docs/reference/gtk/tmpl/gtkhseparator.sgml +++ b/docs/reference/gtk/tmpl/gtkhseparator.sgml @@ -15,7 +15,7 @@ make it appear sunken into the interface. The #GtkHSeparator widget is not used as a separator within menus. To create a separator in a menu create an empty #GtkSeparatorMenuItem widget using gtk_separator_menu_item_new() and add it to the menu with -gtk_menu_append(). +gtk_menu_shell_append(). diff --git a/docs/reference/gtk/tmpl/gtkmain.sgml b/docs/reference/gtk/tmpl/gtkmain.sgml index c90ef7af94..efa166da85 100644 --- a/docs/reference/gtk/tmpl/gtkmain.sgml +++ b/docs/reference/gtk/tmpl/gtkmain.sgml @@ -585,6 +585,9 @@ GTK+ to do pending redraws. This priority is lower than %GTK_PRIORITY_RESIZE to avoid redrawing a widget just before resizing (and therefore redrawing it again). + +This macro is deprecated. You should use %GDK_PRIORITY_REDRAW instead. + diff --git a/docs/reference/gtk/tmpl/gtkradiobutton.sgml b/docs/reference/gtk/tmpl/gtkradiobutton.sgml index 3a3ff33b65..d3117b4c8a 100644 --- a/docs/reference/gtk/tmpl/gtkradiobutton.sgml +++ b/docs/reference/gtk/tmpl/gtkradiobutton.sgml @@ -30,7 +30,7 @@ gtk_radio_button_new_with_label_from_widget() is also provided. To retrieve the group a #GtkRadioButton is assigned to, use -gtk_radio_button_group(). +gtk_radio_button_get_group(). To remove a #GtkRadioButton from one group and make it part of a new one, use gtk_radio_button_set_group(). diff --git a/docs/reference/gtk/tmpl/gtkradiomenuitem.sgml b/docs/reference/gtk/tmpl/gtkradiomenuitem.sgml index 2d04d30866..9b8d10b3a6 100644 --- a/docs/reference/gtk/tmpl/gtkradiomenuitem.sgml +++ b/docs/reference/gtk/tmpl/gtkradiomenuitem.sgml @@ -23,7 +23,7 @@ gint i; for(i = 0; i < 5; i++) { item = gtk_radio_menu_item_new_with_label (group, "This is an example"); - group = gtk_radio_menu_item_group (GTK_RADIO_MENU_ITEM (item)); + group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (item)); if (i == 1) gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), TRUE); } diff --git a/docs/reference/gtk/tmpl/gtktree.sgml b/docs/reference/gtk/tmpl/gtktree.sgml index 75fcfeec39..771e371029 100644 --- a/docs/reference/gtk/tmpl/gtktree.sgml +++ b/docs/reference/gtk/tmpl/gtktree.sgml @@ -124,7 +124,7 @@ Removes a list of items from the #GtkTree in @tree. If only one item is to be removed from the #GtkTree, gtk_container_remove() can be used instead. -Removing an item from a #GtkTree dereferences the item, and thus usually destroys the item and any subtrees it may contain. If the item is not to be destroyed, use gtk_object_ref() before removing it. +Removing an item from a #GtkTree dereferences the item, and thus usually destroys the item and any subtrees it may contain. If the item is not to be destroyed, use g_object_ref() before removing it. @tree: A pointer to a #GtkTree. @@ -136,7 +136,7 @@ Removing an item from a #GtkTree dereferences the item, and thus usually destroy Removes the items at positions between @start and @end from the #GtkTree @tree. -Removing an item from a #GtkTree dereferences the item, and thus usually destroys the item and any subtrees it may contain. If the item is not to be destroyed, use gtk_object_ref() before removing it. +Removing an item from a #GtkTree dereferences the item, and thus usually destroys the item and any subtrees it may contain. If the item is not to be destroyed, use g_object_ref() before removing it. @tree: A pointer to a #GtkTree. diff --git a/docs/reference/gtk/tmpl/gtkvbbox.sgml b/docs/reference/gtk/tmpl/gtkvbbox.sgml index bba6c6eb03..d8c312d856 100644 --- a/docs/reference/gtk/tmpl/gtkvbbox.sgml +++ b/docs/reference/gtk/tmpl/gtkvbbox.sgml @@ -8,14 +8,14 @@ a container for arranging buttons vertically. A button box should be used to provide a consistent layout of buttons throughout your application. There is one default layout and a default -spacing value that are persistant across all #VButtonBox widgets. +spacing value that are persistant across all #GtkVButtonBox widgets. The layout/spacing can then be altered by the programmer, or if desired, by the user to alter the 'feel' of a program to a small degree. -A #VButtonBox is created with gtk_vbutton_box_new(). Buttons are packed into +A #GtkVButtonBox is created with gtk_vbutton_box_new(). Buttons are packed into a button box the same way as any other box, using gtk_box_pack_start() or gtk_box_pack_end(). -- 2.30.2